<?php
namespace app\btApi\validate;
use think\Validate;

class LoginValidate extends Validate
{
    protected $rule = [
        'username' => 'require|min:8|max:25',
        'password' => 'require|max:25',
    ];
    protected $message = [
        'username.require' => '用户名不能为空',
        'username.min' => '最少八个字符',
        'username.max' => '最多25个字符',
        'password.require' => '密码不能为空',
        'password.max' => '最多25个字符',
    ];
}